//
//  HoldHeartView.m
//  UI5_UIControl
//
//  Created by dllo on 15/11/12.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "HoldHeartView.h"

@implementation HoldHeartView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubviews];
    }
    return self;
}

- (void)createSubviews
{
    
    NSMutableArray *fileArr = [NSMutableArray array];
    
    for (NSInteger i = 1; i < 28; i++) {
        NSString *fileName = [NSString stringWithFormat:@"pukai_cry_%04ld.png", i];
        UIImage *image = [UIImage imageNamed:fileName];
        [fileArr addObject:image];
    }
    
    
    
    self.backgroundColor = [UIColor lightGrayColor];
    
    UIImageView *imageV = [[UIImageView alloc] initWithFrame:CGRectMake(50, 100, 200, 200)];
    imageV.animationImages = fileArr;
    
    
    
    
    [self addSubview:imageV];
    [imageV startAnimating];
    
    [imageV release];
    
    
    
}

@end
